cmake_minimum_required(VERSION 3.15)

project(design_pattern)

add_executable(simple_factory factory/simple_factory.cpp)
add_executable(factory_method factory/factory_method.cpp)
add_executable(abstract_factory factory/abstract_factory.cpp)
add_executable(singleton singleton.cpp)
add_executable(observer observer.cpp)
add_executable(clone clone.cpp)
add_executable(builder builder.cpp)
add_executable(adapter adapter.cpp)
add_executable(proxy proxy.cpp)
add_executable(template template.cpp)
add_executable(strategy strategy.cpp)
add_executable(chain_responsibility chain_responsibility.cpp)
add_executable(bridge bridge.cpp)